package com.bootdo.contract.controller;


import com.bootdo.common.controller.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/contract/map")
public class MapController extends BaseController {
    private String prefix = "contract/map";

    @GetMapping()
    @RequiresPermissions("contract:map:map")
    String dept() {
        return prefix + "/map";
    }

    @GetMapping("/historyMap")
    @RequiresPermissions("contract:map:map")
    String historyMap(){
        return prefix + "/historyMap";
    }

    @GetMapping("/fencing")
    @RequiresPermissions("contract:map:map")
    String fencing(){
        return prefix + "/fencing";
    }


    @GetMapping("/realTime")
    @RequiresPermissions("contract:map:map")
    String realTime(){
        return prefix + "/realTime";
    }

}
